<?php 
      $flashMessenger = new Zend_Controller_Action_Helper_FlashMessenger();

      if($flashMessenger->setNamespace('errors')->hasMessages()
         || $flashMessenger->hasCurrentMessages()):?>
            <ul class="errors" title="<?php echo $this->translate('[ERRORS]'); ?>">
                <li>
            <?php
                echo join("</li><li>", $flashMessenger->getMessages()
                                     + $flashMessenger->getCurrentMessages());
                $flashMessenger->clearCurrentMessages();
            ?>
                </li>
            </ul>
<?php endif;
      if($flashMessenger->setNamespace('notices')->hasMessages()
         || $flashMessenger->hasCurrentMessages()):?>
            <ul class="notices" title="<?php echo $this->translate('[NOTICES]'); ?>">
                <li>
            <?php
                echo join("</li><li>", $flashMessenger->getMessages()
                                     + $flashMessenger->getCurrentMessages());
                $flashMessenger->clearCurrentMessages();
            ?>
                </li>
            </ul>
<?php endif;
      if($flashMessenger->setNamespace('successes')->hasMessages()
         || $flashMessenger->hasCurrentMessages()):?>
            <ul class="successes" title="<?php echo $this->translate('[SUCCESSES]'); ?>">
                <li>
            <?php
                echo join("</li><li>", $flashMessenger->getMessages()
                                     + $flashMessenger->getCurrentMessages());
                $flashMessenger->clearCurrentMessages();
            ?>
                </li>
            </ul>
<?php endif;?>